package controller;

import utils.StringUtils;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Author 咕唧
 * @Date 2022/5/10 22:13
 * @Version 1.0
 */
@WebServlet("/test")
public class TestController extends HttpServlet {
    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        boolean flag= StringUtils.Empty("aaa");
        System.out.println(flag);
    }

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        doPost(req, resp);
    }

//    public String  test() {
//
//        boolean flag= StringUtils.Empty("aaa");
//        System.out.println(flag);
//
//        return "";
//    }
}
